'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);

  router.get('/user/list', controller.user.list);
  // 登录
  router.get('/login', controller.user.login);
  // 座位列表
  router.get('/seat/list', controller.seat.seatList);
  // 选择座位
  router.post('/seat/select', controller.seat.selectSeat);
  // 查看预约座位
  router.get('/seat/order', controller.seat.seatOrderList);
  // 座位监督
  router.post('/supervise', controller.supervise.supervise);
  // 座位切换
  router.put('/seat/change', controller.seat.change);
  // 信息反馈
  router.post('/feedback', controller.feedback.feedback);
  // 设置常用座位
  router.post('/seat/regular', controller.seat.regular);
  // 查看公告
  router.get('/notice', controller.notice.notice);
};
